package com.base.cn.platform.os.common;

import com.base.cn.platform.os.common.controller.BaseController;
import com.base.cn.platform.os.common.utils.web.LoginUtil;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 后台通用Controller父级
 *
 * @author s.li
 * @create 2018-03-07 9:47
 */
public abstract class AdminBaseController extends BaseController {

    @Autowired
    protected LoginUtil loginUtil;

    public String resultPage(String path){
        if(!path.trim().startsWith("/")){
            path = "/"+path;
        }
        return "/view"+path;
    }
}
